<template>
  <view class="huiyuan-shop">
    <view class="top">
      <image src="https://picsum.photos/id/946/200/200"></image>
      <view class="flex-col" style="width: 520rpx;">
        <view class="name">仟吉蛋糕店(宝龙店)</view>
        <view class="gray">月销1345</view>
        <view class="tags">
          <u-tag class="tag" color="#000" text="物流" mode="dark" shape="circle" size="mini" bg-color="#f6ad3c"></u-tag>
          <u-tag class="tag" color="#000" text="预定" mode="dark" shape="circle" size="mini" bg-color="#f6ad3c"></u-tag>
          <u-tag class="tag" color="#000" text="配送" mode="dark" shape="circle" size="mini" bg-color="#f6ad3c"></u-tag>
        </view>
      </view>
    </view>

    <view class="tips">
      <view class="tip">买二送一</view>
      <view class="tip">买二送一</view>
      <view class="tip">买二送一</view>
    </view>

    <view class="goods">
      <view class="good">
        <image src="https://picsum.photos/id/588/200/200"></image>
        <view class="name u-line-1">软玉千层派</view>
        <view class="price text-red">¥9.9</view>
      </view>

      <view class="good">
        <image src="https://picsum.photos/id/588/200/200"></image>
        <view class="name u-line-1">软玉千层派</view>
        <view class="price text-red">¥9.9</view>
      </view>

      <view class="good">
        <image src="https://picsum.photos/id/588/200/200"></image>
        <view class="name u-line-1">软玉千层派</view>
        <view class="price text-red">¥9.9</view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {

      };
    }
  }
</script>

<style lang="scss">
  .huiyuan-shop {
    width: 702rpx;
    height: 478rpx;
    background: #FFFFFF;
    padding: 24rpx;
    border-radius: 12rpx;
    margin: 24rpx 0;

    .goods {
      display: flex;
      justify-content: space-between;
      align-items: center;

      .good {
        width: 200rpx;

        image {
          width: 200rpx;
          height: 174rpx;
          object-fit: cover;
          border-radius: 4rpx;
        }
      }
    }

    .top {
      display: flex;
      justify-content: space-between;

      image {
        width: 110rpx;
        height: 110rpx;
        background: #004714;
        border-radius: 4rpx;
      }

      .name {
        font-size: 32rpx;
      }

      .gray {
        font-size: 24rpx;
        color: #C3C3C3;
      }

      .tag {
        margin-right: 8rpx;
      }
    }

    .tips {
      display: flex;
      flex-flow: row wrap;
      align-items: center;
      padding: 16rpx 0;

      .tip {
        color: #F6AD3C;
        font-size: 24rpx;
        padding: 0 40rpx;
        position: relative;

        &:nth-of-type(1) {
          padding: 0 40rpx 0 0;
        }

        &::after {
          width: 4rpx;
          height: 22rpx;
          border-radius: 4rpx;
          background: #000;
          content: '';
          position: absolute;
          right: 0;
          top: 50%;
          transform: translateY(-50%);
        }


        &:nth-last-of-type(1)::after {
          display: none;
        }
      }
    }
  }
</style>
